package com.cmc.cloud.cmclink.doc.api.document;

import com.cmc.cloud.cmclink.doc.api.document.rep.HsCodeRespDto;
import com.cmc.cloud.cmclink.doc.api.document.req.HsCodeReqDto;
import com.cmc.cloud.cmclink.doc.constant.DocApiConstants;
import com.cmes.framework.common.pojo.CommonResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.List;

/**
 * HsCode RPC 接口查询
 *
 * @author lzp
 */
@FeignClient(name = DocApiConstants.NAME)
@Tag(name = "RPC - 服务 HsCode 信息查询")
public interface HsCodeQueryApi {

    String PREFIX = DocApiConstants.PREFIX + "/hsCode";

    /**
     * hsCode信息查询
     *
     * @param hsCodeReqDto
     * @return
     */
    @Operation(summary = "hsCode信息查询")
    @PostMapping(PREFIX + "/query")
    CommonResult<List<HsCodeRespDto>> queryHsCodeInfo(@Valid @RequestBody HsCodeReqDto hsCodeReqDto);
}
